export const allTowerMixin = {
  data () {
    return {
      activeName: '桃园',
      towerIds: '桃园1',
      damageUpList: [],
      taoyuan: [
        {
          towerId: 't1',
          towerName: '桃园1'
        }, {
          towerId: 't2',
          towerName: '桃园2'
        }, {
          towerId: 't3',
          towerName: '桃园3'
        }, {
          towerId: 't4',
          towerName: '桃园4'
        }, {
          towerId: 't5',
          towerName: '桃园5'
        }, {
          towerId: 't6',
          towerName: '桃园6'
        }
      ],
      liyuan: [
        {
          towerId: 'l1',
          towerName: '荔园1'
        }, {
          towerId: 'l2',
          towerName: '荔园2'
        }, {
          towerId: 'l3',
          towerName: '荔园3'
        }, {
          towerId: 'l4',
          towerName: '荔园4'
        }, {
          towerId: 'l5',
          towerName: '荔园5'
        }, {
          towerId: 'l6',
          towerName: '荔园6'
        }
      ],
      lanyuan: [
        {
          towerId: 'lan1',
          towerName: '兰园1'
        }, {
          towerId: 'lan2',
          towerName: '兰园2'
        }, {
          towerId: 'lan3',
          towerName: '兰园3'
        }, {
          towerId: 'lan4',
          towerName: '兰园4'
        }, {
          towerId: 'lan5',
          towerName: '兰园5'
        }, {
          towerId: 'lan6',
          towerName: '兰园6'
        }
      ],
      dataList: {
        pagenum: 1,
        pagesize: 7
      },
      total: 0
    }
  },
  methods: {
    // 给表格添加索引
    indexMethod (index) {
      return (index + 1)
    }
  }
}
